package tech.aistar.service;

import com.github.pagehelper.PageInfo;
import tech.aistar.dto.HeSearch;
import tech.aistar.entity.House;

import java.util.List;
import java.util.Map;

public interface IES {

    //增加索引，返回成功或失败
    String addEsIndex();
    //删除索引，返回成功或失败
    String delEsIndex();
    //增加文档，返回成功或失败

    //合租
    String  addEsDoc();
    //删除文档 返回成功或者失败

    //经纪人搜索
    String addEsAgent();


    List<Map<String,Object>> searchEsAgent(String content);

    //查找指定索引的文档内容
    String findDoc();
    //增加索引，返回成功或失败
    List<Map<String,Object>> searchEs(String content);


    PageInfo<HeSearch> heESPage(String sea, Integer pageNow, Integer pageSize);


    PageInfo<HeSearch> zhengESPage(String sea, Integer pageNow, Integer pageSize);
    //整租
    String  addEsDocZheng();

    List<Map<String,Object>> searchEsZheng(String content);

    List<Map<String,Object>> searchESPT(String content);

    List<Map<String,Object>> searchESPTZheng(String content);

}
